package com.evil.common.application.dto.order.node;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 修改订单节点数据
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ChangeOrderNodeDataReqDTO extends OrderNodesDTO {

    /**
     * 工作流处理类型
     */
    @NotNull(message = "工作流处理类型参数不能为空")
    private Integer handleType;

    public ChangeOrderNodeDataReqDTO(@NotNull(message = "订单id不能为空") Long orderId, @NotEmpty(message = "节点id不能为空") List<Long> nodeIds, Integer handleType) {
        super(orderId, nodeIds);
        this.handleType = handleType;
    }
}
